import java.util.Scanner;

public class Answer1 {
    //乒乓球筐
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        String s1=in.next();
        String s2=in.next();

        int[ ] hash=new int[26];
        for(int i=0;i<s1.length();i++){
            hash[s1.charAt(i)-'A']++;
        }

        boolean ret=true;
        for(int i=0;i<s2.length();i++){
            if(--hash[s2.charAt(i)-'A'] < 0){
                ret=false;
                break;
            }
        }

        if(ret) System.out.println("yes");
        else System.out.println("no");


    }
}
